home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat6
/
distort.z
/
distort
Wrap
Text File
|
1998-10-30
|
2KB
|
67 lines
DDDDIIIISSSSTTTTOOOORRRRTTTT((((6666DDDD)))) DDDDIIIISSSSTTTTOOOORRRRTTTT((((6666DDDD))))
NNNNAAAAMMMMEEEE
distort - real time image distortion demo
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ddddiiiissssttttoooorrrrtttt [[[[iiiimmmmggggffffiiiilllleeee]]]]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_d_i_s_t_o_r_t demonstrates how texture mapping can be used to produce real time
image distortion effects. This is achieved by mapping a high resolution
texture onto a large array of polygons.
The iiiimmmmggggffffiiiilllleeee argument is used to indicate the name of an alternate image
file. The default image,
/_u_s_r/_d_e_m_o_s/_G_e_n_e_r_a_l__D_e_m_o_s/_d_i_s_t_o_r_t/_d_a_t_a/_d_i_s_t_o_r_t._r_g_b, is a picture of a dog.
Use the _l_e_f_t _m_o_u_s_e _b_u_t_t_o_n to select one of the following distortion ef-
fects:
RRRRiiiipppppppplllleeee
This effect approximates looking at an image through a thin layer of
water. The _r_i_g_h_t _m_o_u_s_e _b_u_t_t_o_n can be used to tap on the water, gen-
erating ripple patterns.
RRRRuuuubbbbbbbbeeeerrrr
The image is mapped onto a mesh of springs which behave like those
used in the _j_e_l_l_o demo. The mesh can be manipulated by holding down
the _r_i_g_h_t _m_o_u_s_e _b_u_t_t_o_n and dragging.
Press the _E_S_C key to exit the program.
BBBBUUUUGGGGSSSS
Requires a hardware texturing or a good imagination. The source image
must be square.
AAAAUUUUTTTTHHHHOOOORRRR
Drew Olbrich
PPPPaaaaggggeeee 1111